<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			#d1{
				width:50px;
				height:50px;
				background:red;
				transition:all 3s ease-in-out -2s;
			}
			
		</style>
	</head>
	<body>
		<div id="d1" onclick="donghua()"></div>
	</body>
	
	<script>
		function donghua(){
			d1.style.transform = "translateY(400px)";
		}
	</script>
</html>
